<?php namespace nimo\domains\master\models;

use nimo\common\models\BaseModel;

class Code extends BaseModel {

    protected $table = 'nd_master_code';

	protected $primaryKey = array('domainid', 'codetype', 'code');

    protected $guarded = array();

    public static $rules = array(
        'domainid' => 'required|integer',
        'codetype' => 'required|max:4',
        'code' => 'required|max:8',
        'name' => 'required|max:32',
        'description' => 'required|max:128',
        'sortno' => 'required|integer',
    );

    public $incrementing = false;

}
